package com.qf.userfull;

/**
 * 让dog成为飞行员
 */
public class Dog extends Animal {

    @Override
    public void sleep() {
        System.out.println("dog sleep");
    }

    @Override
    public void eat() {
        System.out.println("dog 吃骨头");
    }


    public void lookHome(){
        System.out.println("dog 在砍价");
    }

    /**
     * Dog类的HashCode取值范围为 [0,100]
     * @return
     */
    @Override
    public int hashCode() {
        return (getAge()+getHp()+getAtk())%101;
    }
}
